x86/boot: copy/clear sections more efficiently
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Apr 2015 16:32:24 +0000 (17:32 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 23 Jun 2016 11:58:04 +0000 (12:58 +0100)
commit6a35f1e1fb03bbb957828f9f2cf8bfc47df95ee6
treecb7865a560d8557b67c1684aa9c2c7abe4cf0a9a
parent544ad7f5caf50771ebc02603ced2d7a2ef12c662
x86/boot: copy/clear sections more efficiently

Both the trampoline copy and BSS initialise can be performed more
efficiently by using 4-byte variants of the string operations.

On Intel systems with ERMSB (efficient rep movsb), this is no practical
difference.  On all other systems, this is 4 times more efficient.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/head.S
xen/arch/x86/xen.lds.S